package com.imgo.max.experience.util;

import ch.qos.logback.classic.spi.LoggingEvent;
import ch.qos.logback.core.filter.Filter;
import ch.qos.logback.core.spi.FilterReply;

public class MsgLogFilter extends Filter {  

	@Override  
	public FilterReply decide(Object eventObject) {  
		LoggingEvent event = (LoggingEvent)eventObject;  

		if (event.getMessage().contains("MQ:")) {  
			return FilterReply.ACCEPT;  
		} else {  
			return FilterReply.NEUTRAL;  
		}  
	}  
} 